﻿using FluentNHibernate.Mapping;

namespace Model
{
    public class Item
    {
        public virtual int ID { get; set; }
        public virtual string Name { get; set; }
        public virtual string Description { get;set; }
        public virtual int ExternalKey { get; set; }
        public virtual int Level { get; set; }
        public virtual int RequiredLevel { get; set; }
    }

    public class ItemMapping : ClassMap<Item>
    {
        public ItemMapping()
        {
            Id(x => x.ID);
            Map(x => x.Name);
            Map(x => x.Description);
            Map(x => x.ExternalKey);
            Map(x => x.Level);
            Map(x => x.RequiredLevel);
        }
    }
}
